package com.sharding.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sharding.entity.OrderItem;
import com.sharding.mapper.OrderItemMapper;
import com.sharding.service.OrderItemService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItem> implements OrderItemService {
    @Override
    public boolean save(OrderItem entity) {
        return super.save(entity);
    }

    @Override
    public List<OrderItem> getOrderItemList() {
        return baseMapper.selectList(Wrappers.<OrderItem>lambdaQuery());
    }

}